

****** Table 5: Rights and Protecting Human Rights in 2017 ****** 

use "Data_Duties_Master.dta", clear

label var duties_total "# of Duties"
label var rights_total "# of Rights"
label var polity2 "Polity Score"

br country if year==2017 & duties_total==. 

reg polity2  duties_total  if year==2017
	outreg2 duties_total rights_total  using "Table5.xls", nocons replace excel dec(3)

reg polity2  duties_total rights_total  if year==2017
	outreg2 duties_total rights_total  using "Table5.xls", nocons append excel dec(3)

reg polity2  duties_total i.year i.ccode if year<2018
	outreg2 duties_total rights_total  using "Table5.xls", nocons append excel dec(3) keep(duties_total)

reg polity2  duties_total rights_total i.year i.ccode if year<2018
	outreg2 duties_total rights_total  using "Table5.xls", nocons append excel dec(3) keep(duties_total rights_total)

	
*** Marginal Effects 
	
reg polity2  duties_total rights_total  if year==2017
	margins, at(duties_total=(0(1)10))
	

reg polity2  duties_total rights_total i.year i.ccode if year<2018
	margins, at(duties_total=(0(1)10))
	
summarize duties_total  if year==2017, detail
